<?php
$ArDepartamentos = Dracosys::getSessionValue(SESSION_INTERFACE, 'DepartamentsList');
$ArFuncoes = Dracosys::getSessionValue(SESSION_INTERFACE, 'PositionsList');
$ArFerramentas = Dracosys::getSessionValue(SESSION_INTERFACE, 'ToolsList');
$ArPreferencias = Dracosys::getSessionValue(SESSION_INTERFACE, 'PreferencesList');
?>
<h2>Cadastrar Funcion&aacute;rio</h2>
<section id="CreateEmpl">
    <form method="post" action="administracao/inserir-funcionario" name="FormCriarFuncionario">
        <div class="toggleContainer" id="CreateEmpl_toggleDados"><a href="#" class="toggle Up" rel="CreateEmpl_Dados">Dados Pessoais</a></div>
        <section id="CreateEmpl_Dados" class="section-update">
            <section class="DadosUser_Pessoal">
                <div class="out_txt big"><label for="CreateEmpl_StNome">Nome</label></div>
                <div class="inp_txt big"><input type="text" name="StNome" id="CreateEmpl_StNome" value="" /></div>
                <div class="out_txt big"><label for="CreateEmpl_DtNascimento">Nascimento</label></div>
                <div class="inp_txt big"><input type="text" name="DtNascimento" id="CreateEmpl_DtNascimento" value="" class="Date" /></div>
                <div class="out_txt big"><label for="CreateEmpl_StCpf">Cpf</label></div>
                <div class="inp_txt big"><input type="text" name="StCpf" id="CreateEmpl_StCpf" value="" class="Cpf" /></div>
                <div class="out_txt big"><label for="CreateEmpl_StRg">Rg</label></div>
                <div class="inp_txt big"><input type="text" name="StRg" id="CreateEmpl_StRg" value="" class="Rg" /></div>
            </section>
            <section class="DadosUser_Localizacao">
                <div class="out_txt big"><label for="CreateEmpl_StEndereco">Endereço</label></div>
                <div class="inp_txt big"><input type="text" name="StEndereco" id="CreateEmpl_StEndereco" value="" /></div>
                <div class="out_txt big"><label for="CreateEmpl_StNumero">Numero</label></div>
                <div class="inp_txt big"><input type="text" name="StNumero" id="CreateEmpl_StNumero" value="" /></div>
                <div class="out_txt big"><label for="CreateEmpl_StComplemento">Complemento</label></div>
                <div class="inp_txt big"><input type="text" name="StComplemento" id="CreateEmpl_StComplemento" value="" /></div>
                <div class="out_txt big"><label for="CreateEmpl_StBairro">Bairro</label></div>
                <div class="inp_txt big"><input type="text" name="StBairro" id="CreateEmpl_StBairro" value="" /></div>
                <div class="out_txt big"><label for="CreateEmpl_StCidade">Cidade</label></div>
                <div class="inp_txt big"><input type="text" name="StCidade" id="CreateEmpl_StCidade" value="" /></div>
                <div class="out_txt big"><label for="CreateEmpl_StEstado">Estado</label></div>
                <div class="inp_txt big"><input type="text" name="StEstado" id="CreateEmpl_StEstado" value="" class="Uf" /></div>
                <div class="out_txt big"><label for="CreateEmpl_StCep">Cep</label></div>
                <div class="inp_txt big"><input type="text" name="StCep" id="CreateEmpl_StCep" value="" class="ZipCode" /></div>
            </section>
            <section class="DadosUser_Comunicacao">
                <div class="out_txt medium"><label for="CreateEmpl_StEmail">Email</label></div>
                <div class="inp_txt medium"><input type="text" name="StEmail" id="CreateEmpl_StEmail" value="" /></div>
                <div class="out_txt small"><label for="CreateEmpl_ItRamal">Ramal</label></div>
                <div class="inp_txt small"><input type="text" name="ItRamal" id="CreateEmpl_ItRamal" value="" /></div>
                <div class="out_txt small"><label for="CreateEmpl_StDDDTelefone">DDD</label></div>
                <div class="inp_txt small"><input type="text" name="StDDDTelefone" id="CreateEmpl_StDDDTelefone" value="" class="DddPhone" /></div>
                <div class="out_txt medium"><label for="CreateEmpl_StTelefone">Telefone</label></div>
                <div class="inp_txt medium"><input type="text" name="StTelefone" id="CreateEmpl_StTelefone" value="" class="Phone" /></div>
                <div class="out_txt small"><label for="CreateEmpl_StDDDCelular">DDD</label></div>
                <div class="inp_txt small"><input type="text" name="StDDDCelular" id="CreateEmpl_StDDDCelular" value="" class="DddPhone" /></div>
                <div class="out_txt medium"><label for="CreateEmpl_StCelular">Celular</label></div>
                <div class="inp_txt medium"><input type="text" name="StCelular" id="CreateEmpl_StCelular" value="" class="Phone" /></div>
            </section>
        </section>
        <div class="toggleContainer" id="CreateEmpl_toggleEmprego"><a href="#" class="toggle Down" rel="CreateEmpl_Emprego">Dados Administrativos</a></div>
        <section id="CreateEmpl_Emprego" class="section-update" style="display:none;">
            <div class="out_txt big"><label for="CreateEmpl_FoSalario">Salario</label></div>
            <div class="inp_txt big"><input type="text" name="FoSalario" id="CreateEmpl_FoSalario" value="" class="price" /></div>
            <div class="out_txt big"><label for="CreateEmpl_StBanco">Banco</label></div>
            <div class="inp_txt big"><input type="text" name="StBanco" id="CreateEmpl_StBanco" value="" /></div>
            <div class="out_txt big"><label for="CreateEmpl_StAgencia">Agencia</label></div>
            <div class="inp_txt big"><input type="text" name="StAgencia" id="CreateEmpl_StAgencia" value="" /></div>
            <div class="out_txt big"><label for="CreateEmpl_StConta">Conta</label></div>
            <div class="inp_txt big"><input type="text" name="StConta" id="CreateEmpl_StConta" value="" /></div>
            <div class="out_txt big"><label for="CreateEmpl_DtAdmissao">Data de Admissão</label></div>
            <div class="inp_txt big"><input type="text" name="DtAdmissao" id="CreateEmpl_DtAdmissao" value="" class="Date" /></div>
            <div class="out_txt big"><label for="CreateEmpl_EnEstadoCivil">Estado Civil</label></div>
            <div class="inp_txt big">
                <select name="EnEstadoCivil" id="CreateEmpl_EnEstadoCivil">
                    <option value="SOLTEIRO">Solteiro</option>
                    <option value="CASADO">Casado</option>
                    <option value="DIVORCIADO">Divorciado</option>
                    <option value="VIUVO">Vi&uacute;vo</option>
                </select>
            </div>
            <div class="out_txt big"><label for="CreateEmpl_StPis">Pis</label></div>
            <div class="inp_txt big"><input type="text" name="StPis" id="CreateEmpl_StPis" value="" /></div>
            <div class="out_txt big"><label for="CreateEmpl_StCertificadoReservista">Certificado de Reservista</label></div>
            <div class="inp_txt big"><input type="text" name="StCertificadoReservista" id="CreateEmpl_StCertificadoReservista" value="" /></div>
            <div class="out_txt big"><label for="CreateEmpl_StTituloEleitor">Título de Eleitor</label></div>
            <div class="inp_txt big"><input type="text" name="StTituloEleitor" id="CreateEmpl_StTituloEleitor" value="" /></div>
        </section>
        <div class="toggleContainer" id="CreateEmpl_toggleDependentes">
            <a href="#" class="toggle Down" rel="CreateEmpl_Dependentes">Dados Dependentes</a>
        </div>
        <section id="CreateEmpl_Dependentes" class="section-update" style="display:none;">

        </section>
        <div class="Dependent_Options">
            <a href="#" title="Inserir" id="Dependente_Insert"><span>Insert</span></a>
            <a href="#" title="Voltar" id="Dependente_Undo"><span>Undo</span></a>
        </div>
        <div class="toggleContainer" id="CreateEmpl_toggleSetor"><a href="#" class="toggle Down" rel="CreateEmpl_Setor">Fun&ccedil;&otilde;es na Empresa</a></div>
        <section id="CreateEmpl_Setor" class="section-update" style="display:none;">
            <div class="out_txt big"><label for="CreateEmpl_IDDepartamento">Departamento</label></div>
            <div class="inp_txt big">
                <select name="StDepartamento" id="CreateEmpl_IDDepartamento">
                    <?php foreach($ArDepartamentos as $Departamento): ?>
                             <option value="<?=$Departamento->getIDDepartamento()?>"><?=$Departamento->getStNome()?></option>
                    <?php endforeach; ?>
                </select>
            </div>
            <div class="out_txt big"><label for="CreateEmpl_IDSetor">Setor</label></div>
            <div class="inp_txt big">
                <select name="IDSetor" id="CreateEmpl_IDSetor">
                </select>
            </div>
            <div class="out_txt big"><label for="CreateEmpl_IDFuncao">Função</label></div>
            <div class="inp_txt big">
                <select name="IDFuncao" id="CreateEmpl_IDFuncao">
                    <?php foreach($ArFuncoes as $Funcao): ?>
                        <option value="<?=$Funcao->getIDFuncao()?>"><?=$Funcao->getStNome()?></option>
                    <?php endforeach; ?>
                </select>
            </div>
            <div class="out_txt big"><label for="CreateEmpl_IDPerfil">Perfil</label></div>
            <div class="inp_txt big">
                <select name="IDPerfil" id="CreateEmpl_IDPerfil">
                </select>
            </div>
        </section>
        <div class="toggleContainer" id="CreateEmpl_toggleFerramentas"><a href="#" class="toggle Down" rel="CreateEmpl_Ferramentas">Ferramentas Habilitadas</a></div>
        <section id="CreateEmpl_Ferramentas" class="section-update" style="display:none;">
            <div class="out_txt big">Ferramentas Habilitadas</div>
            <div class="inp_txt big">
                <?php foreach($ArFerramentas as $Ferramenta): ?>
                    <input type="checkbox" name="Preferencias" id="CreateEmpl_Ferramenta<?=$Ferramenta->getIDFerramenta()?>" value="<?=$Ferramenta->getIDFerramenta()?>" style="width:15px !important;" /> <?=$Ferramenta->getStFerramenta()?>
                <?php endforeach; ?>
            </div>
        </section>
        <div class="toggleContainer" id="CreateEmpl_togglePreferencias"><a href="#" class="toggle Down" rel="CreateEmpl_Preferencias">Prefer&ecirc;rencias do Usu&aacute;rio</a></div>
        <section id="CreateEmpl_Preferencias" class="section-update" style="display:none;">
            <?php foreach($ArPreferencias as $StPreferencia): ?>
                <div class="out_txt big"><?=$StPreferencia?></div>
                <div class="inp_txt big"><input type="text" name="<?=$StPreferencia?>" id="CreateEmpl_<?=$StPreferencia?>" /></div>
            <?php endforeach; ?>
        </section>
        <div class="btn"><button class="v1">Cadastrar</button></div>
    </form>
</section>
